#pragma once
#include<iostream>
using namespace std;

namespace zlog
{
   class LogLevel
   {
    public:
       enum class value
       {
          UNKNOWN=0,
          DEBUG,
          INFO,
          WARN,
          ERROR,
          FATAL,
          OFF
       };    
       static const char* toString(LogLevel::value level)
       {
           switch(level)
           {
              case value::DEBUG:
                return "DEBUG";
              case value::INFO:
                return "INFO";
              case value::WARN:
                return "WARN";
              case value::ERROR:
                return "ERROR";
              case value::FATAL:
                return "FATAL";
              default:
                break;          
           }
           return "UNKNOWN";
       }
   };

}